package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pojo.DtsOrderGoods;
import com.qf.vo.GoodsCountVo;

import java.util.List;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 订单商品表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsOrderGoodsMapper extends BaseMapper<DtsOrderGoods> {

    List<GoodsCountVo> queryUserStatis(int rang);
    @Select("SELECT * FROM dts_order_goods WHERE order_id=#{id};")
    DtsOrderGoods selectByOrderId(Integer id);
    @Select("select *from dts_order_goods where order_id = #{id}")
    List<DtsOrderGoods> findByOrderId(Integer id);
}
